package com.scuvc.service.impl;

import com.scuvc.entity.ModelInfo;
import com.scuvc.service.ModelInfoService;
import com.scuvc.utils.StaticUtils;

import java.util.List;

public class ModelInfoServiceImpl implements ModelInfoService {
    @Override
    public String[] getAllModel() {
        List<ModelInfo> list = StaticUtils.modelInfoDao.getAllModel();
        String[] mName = new String[list.size()];
        for(int i=0;i<list.size();i++){
            mName[i] = list.get(i).getModel_name();
        }
        return mName;
    }

    @Override
    public Long getModelId(String model_name) {
        return StaticUtils.modelInfoDao.getModelId(model_name);
    }
}
